package com.example.hemin.fnb.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.example.hemin.fnb.R;
import com.example.hemin.fnb.ui.base.BaseMvpActivity;
import com.igexin.sdk.GActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class OrderDetails extends BaseMvpActivity {
    @BindView(R.id.lay_back)
    LinearLayout layBack;
    @BindView(R.id.title)
    TextView title;
    @BindView(R.id.text10)
    TextView text10;

    @Override
    public int getLayoutId() {
        return R.layout.order_details;
    }

    @Override
    public void initView() {
       title.setText("订单详情");
    }

    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void onError(Throwable throwable) {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.lay_back, R.id.text10,R.id.text9})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.lay_back:
                finish();
                break;
            case R.id.text10:
                Intent intent = new Intent(OrderDetails.this, Godaddy.class);
                startActivity(intent);
                break;
            case R.id.text9:
                Intent intent2 = new Intent(OrderDetails.this, DetailsOfRefund.class);
                startActivity(intent2);
                break;
        }
    }
}
